package com.fearless.crm.workbench.service;

import com.fearless.crm.vo.CustomerPaginationVo;
import com.fearless.crm.workbench.entity.Contacts;
import com.fearless.crm.workbench.entity.Customer;

import java.util.List;
import java.util.Map;

public interface CustomerService {
    List<String> getCustomerNameAuto(String name);

    CustomerPaginationVo getCustomerListService(Map map1);

    boolean saveCustomerService(Customer customer);

    Customer getCustomerByIdService(String customerId);

    boolean updateCustomer(Customer customer);

    boolean deleteCustomer(String[] id);

    Customer getCustomerByIdDetail(String id);

    boolean addContactInCustomerDetail(Contacts contacts, String customerName);

    Map editCustomerInDetail(String customerId);

    Map updateCustomerInDetail(Customer customer);

    boolean deleteCustomerInDetail(String id);
}
